package com.okyai.kt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.okyai.kt.mapper.RecordDetailMapper;
import com.okyai.kt.domain.RecordDetail;
import com.okyai.kt.service.IRecordDetailService;
import com.okyai.common.core.text.Convert;

/**
 * 档案明细Service业务层处理
 * 
 * @author okyai
 * @date 2021-03-20
 */
@Service
public class RecordDetailServiceImpl implements IRecordDetailService 
{
    @Autowired
    private RecordDetailMapper recordDetailMapper;

    /**
     * 查询档案明细
     * 
     * @param 明细ID 档案明细ID
     * @return 档案明细
     */
    @Override
    public RecordDetail selectRecordDetailById(Long 明细ID)
    {
        return recordDetailMapper.selectRecordDetailById(明细ID);
    }

    /**
     * 查询档案明细列表
     * 
     * @param recordDetail 档案明细
     * @return 档案明细
     */
    @Override
    public List<RecordDetail> selectRecordDetailList(RecordDetail recordDetail)
    {
        return recordDetailMapper.selectRecordDetailList(recordDetail);
    }

    /**
     * 新增档案明细
     * 
     * @param recordDetail 档案明细
     * @return 结果
     */
    @Override
    public int insertRecordDetail(RecordDetail recordDetail)
    {
        return recordDetailMapper.insertRecordDetail(recordDetail);
    }

    /**
     * 修改档案明细
     * 
     * @param recordDetail 档案明细
     * @return 结果
     */
    @Override
    public int updateRecordDetail(RecordDetail recordDetail)
    {
        return recordDetailMapper.updateRecordDetail(recordDetail);
    }

    /**
     * 删除档案明细对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteRecordDetailByIds(String ids)
    {
        return recordDetailMapper.deleteRecordDetailByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除档案明细信息
     * 
     * @param 明细ID 档案明细ID
     * @return 结果
     */
    @Override
    public int deleteRecordDetailById(Long 明细ID)
    {
        return recordDetailMapper.deleteRecordDetailById(明细ID);
    }
}
